package com.creatingrevolutions.vbukit.lib;

import android.content.Context;
import android.os.Vibrator;

public class PhoneUtil
{	
	/**
	 * Requires:
	 * 		<uses-permission android:name="android.permission.VIBRATE"/>
	 * 
	 */
	public void vibrate(Context context)
	{
		try {
			Vibrator v = (Vibrator)context.getSystemService(Context.VIBRATOR_SERVICE);
	        // pass the number of millseconds fro which you want to vibrate the phone here we
	        // have passed 2000 so phone will vibrate for 2 seconds.
	        v.vibrate(2000);
		}
		catch ( Exception e ) {
			e.printStackTrace();
		}
	}
}
